package cn.com.api.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.*;
import cn.com.api.mapper.base.T_memberMapperBase;
import cn.com.util.*;

//DAO
public interface ApiT_memberMapper extends T_memberMapperBase {

	// 按照用户类型查询
	public List<ApiT_member> findT_membersByType(Integer c_mtype);

	// 根据c_userid查找
	public ApiT_member findT_membersByUserid(String c_userid);

	public Map<String, Object> shareInfoById(@Param("userid") String userid);

	// 查询充值汇总列表
	public List<Member_Charge_List> searchMemberChargeListPage(@Param("page") PageInfo pageInfo,
			@Param("conditions") Map<String, Object> conditions);

	// 用户充值明细--按时间倒序
	public List<Member_Charge_List> searchMemberChargeDetailListPage(@Param("page") PageInfo pageInfo,
			@Param("conditions") Map<String, Object> conditions);

	// 搜索用户
	public List<ApiT_member> searchMemberListPage(@Param("conditions") Map<String, Object> conditions,
			@Param("page") PageInfo pageInfo);

	public List<ApiT_member> findT_membersByMap(@Param("conditions") Map<String, Object> conditions);

	public ApiT_member getMemberById(String cid);

	public void updateMemberMoneyByUserId(@Param(value = "cid") String cid, @Param(value = "money") BigDecimal money);

	public List<ApiT_member> getnearlyTransferUserListPage(@Param(value = "user_id") String user_id,
			@Param("page") PageInfo pageInfo);

}
